package top.hzy520.user.service;

import org.springframework.web.multipart.MultipartFile;
import top.hzy520.user.dto.ModifyPawwordInputDTO;
import top.hzy520.user.entity.RegisterInfo;
import top.hzy520.user.entity.User;
import top.hzy520.user.entity.UserElement;

import java.io.IOException;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 22:21 2018/5/30
 */
public interface UserService {
    void smsRegister(RegisterInfo registerInfo) throws Exception;

    void emailRegister(RegisterInfo registerInfo) throws Exception;

    UserElement mobileLogin(User user);

    UserElement emailLogin(User user);

    UserElement editUserInfo(User user, UserElement uuid);

    UserElement uploadHeadImage(MultipartFile file, UserElement currentUser) throws IOException;

    void modifyPassword(ModifyPawwordInputDTO modifyPawwordInputDTO, UserElement currentUser);
}
